<?php
declare (strict_types=1);

namespace app\common\model;

use think\facade\Cache;


class PreceptLog extends Base

{
    protected $name = 'precept_log';
    public static function adds($precept_id,$uid,$title,$content)
    {
        parent::create([
            'precept_id'      => $precept_id,
            'uid'    => $uid,
            'event'       => request()->action(),
            'title' => $title,
            'content' => $content,
        ]);
    }
}
